<template>
  <div>
    <Header></Header>
    <div style="display: flex">
      <Menu></Menu>
      <div style="flex: 1">
        <!--        <component :is="toComName"></component>-->
        <router-view ></router-view>
      </div>

    </div>

  </div>
</template>

<script>
import Header from "@/components/header/Header";
import Menu from "@/components/menu/Menu";
import Scan from "@/components/Scan";
import Sell from "@/components/sell/Sell";
import Input from "@/components/input/Input";
import store from "@/store";
import {message} from "ant-design-vue";

export default {
  name: "sms",
  components: {
    Scan,
    Header,
    Menu,
    Sell,
    Input,
  },
  mounted() {
    this.SignCode=store.getters.getCode
    this.getSignCode()
  },
  methods:{
    getSignCode(){
      if (this.SignCode===200){
        message.success('登录成功', 5)
        store.commit("setCode",'')
      }
    }
  },
}



</script>

<style scoped>

</style>